
import { createBrowserRouter } from "react-router-dom";
import IndexLayout from '../layouts/index'
import Index from '../pages/index'
import Login from '../pages/login'
import ErrorPage from '../pages/error'

const Router = createBrowserRouter([
  {
    path: "/",
    element: <IndexLayout />,
    errorElement: <ErrorPage />,
    children: [
      {
        index: true,
        element: <Index />
      },
    ]
  },
  {
    path: 'login',
    element: <Login />
  },
])

export default Router
